import request from '../utils/request.js'

// 获取热搜,简略版
export const getHotSearch = () => {
  return request({
    method: 'GET',
    url: '/search/hot'
  })
}

// 搜索建议
export const getSearchSuggest = (keywords, type) => {
  return request({
    method: 'GET',
    url: '/search/suggest',
    params: { keywords, type }
  })
}
// 进行搜索
export const SearchThings = ({ limit, offset, type, keywords }) => {
  return request({
    method: 'GET',
    url: '/cloudsearch',
    params: { limit, offset, type, keywords }
  })
}
